<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初中电子课本在线阅读与下载</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f5f5f5;
        }

        .page-title {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #3498db;
            color: white;
            text-align: center;
            padding: 10px 0;
            margin: 0;
            z-index: 1001;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .back-button {
            position: fixed;
            top: 10px;
            left: 10px;
            background-color: #fff;
            color: #3498db;
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: bold;
            z-index: 1002;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .back-button:hover {
            background-color: #f1c40f;
            color: #fff;
        }

        .navbar {
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            background-color: #3498db;
            padding: 10px 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            overflow-x: auto;
        }

        .navbar ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            min-width: 1400px;
            flex-wrap: wrap;
        }

        .navbar li {
            margin: 0 8px;
        }

        .navbar a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 14px;
            padding: 5px 8px;
            white-space: nowrap;
            transition: color 0.3s;
        }

        .navbar a:hover {
            color: #f1c40f;
        }

        .navbar .active {
            color: #f1c40f;
            border-bottom: 2px solid #f1c40f;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-top: 80px;
        }

        .category {
            margin-bottom: 30px;
            border-bottom: 1px solid #eee;
            padding-bottom: 20px;
            display: none;
        }

        .category h2 {
            color: #2c3e50;
            border-left: 4px solid #3498db;
            padding-left: 10px;
        }

        .subcategory {
            margin: 15px 0;
            padding-left: 20px;
        }

        .subcategory h3 {
            color: #34495e;
            margin: 10px 0;
        }

        .pdf-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .pdf-link {
            background-color: #ecf0f1;
            padding: 8px 15px;
            border-radius: 4px;
            text-decoration: none;
            color: #2980b9;
            transition: all 0.3s;
            font-size: 14px;
        }

        .pdf-link:hover {
            background-color: #3498db;
            color: white;
            transform: translateY(-2px);
        }

        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #3498db;
            color: white;
            padding: 10px 15px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
        }

        .back-to-top:hover {
            background-color: #2980b9;
        }

        .category.show {
            display: block;
        }

        @media (max-width: 768px) {
            .navbar ul {
                flex-direction: column;
                align-items: center;
                min-width: auto;
            }

            .container {
                margin-top: 200px;
            }
        }
    </style>
</head>

<body>
    <a href="index.html" class="back-button">返回</a>
    <h1 class="page-title">初中电子课本在线阅读与下载</h1>
    <nav class="navbar">
        <ul>
            <li><a href="#math" id="nav-math" data-target="math">数学</a></li>
            <li><a href="#chinese" id="nav-chinese" data-target="chinese">语文</a></li>
            <li><a href="#english" id="nav-english" data-target="english">英语</a></li>
            <li><a href="#physics" id="nav-physics" data-target="physics">物理</a></li>
            <li><a href="#chemistry" id="nav-chemistry" data-target="chemistry">化学</a></li>
            <li><a href="#biology" id="nav-biology" data-target="biology">生物学</a></li>
            <li><a href="#history" id="nav-history" data-target="history">历史</a></li>
            <li><a href="#geography" id="nav-geography" data-target="geography">地理</a></li>
            <li><a href="#human-geo" id="nav-human-geo" data-target="human-geo">人文地理</a></li>
            <li><a href="#geo-atlas" id="nav-geo-atlas" data-target="geo-atlas">地理图册</a></li>
            <li><a href="#science" id="nav-science" data-target="science">科学</a></li>
            <li><a href="#morality" id="nav-morality" data-target="morality">道德与法治</a></li>
            <li><a href="#music" id="nav-music" data-target="music">音乐</a></li>
            <li><a href="#art" id="nav-art" data-target="art">美术</a></li>
            <li><a href="#art2" id="nav-art2" data-target="art2">艺术</a></li>
            <li><a href="#pe" id="nav-pe" data-target="pe">体育与健康</a></li>
            <li><a href="#russian" id="nav-russian" data-target="russian">俄语</a></li>
            <li><a href="#japanese" id="nav-japanese" data-target="japanese">日语</a></li>
            <li><a href="index.html">返回主页</a></li>
        </ul>
    </nav>

    <div class="container">
        <!-- 数学 -->
        <div class="category" id="math">
            <h2>数学</h2>
            <div class="subcategory">
                <h3>人教版-人民教育出版社</h3>
                <div class="pdf-links">
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/七年级/义务教育教科书·数学七年级上册.pdf&title=七年级上册" class="pdf-link"
                        target="_blank">七年级上册</a>
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/七年级/义务教育教科书·数学七年级下册.pdf&title=七年级下册" class="pdf-link"
                        target="_blank">七年级下册</a>
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/八年级/义务教育教科书·数学八年级上册.pdf&title=八年级上册" class="pdf-link"
                        target="_blank">八年级上册</a>
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/八年级/义务教育教科书·数学八年级下册.pdf&title=八年级下册" class="pdf-link"
                        target="_blank">八年级下册</a>
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/九年级/义务教育教科书·数学九年级上册.pdf&title=九年级上册" class="pdf-link"
                        target="_blank">九年级上册</a>
                    <a href="preview.html?file=./初中/数学/人教版-人民教育出版社/九年级/义务教育教科书·数学九年级下册.pdf&title=九年级下册" class="pdf-link"
                        target="_blank">九年级下册</a>
                </div>
            </div>
            <div class="subcategory">
                <h3>其他版本</h3>
                <div class="pdf-links">
                    <span
                        style="color: #999; font-style: italic;">冀教版、北京版、北师大版、华东师大版、沪科技版、浙教版、湘教版、苏科版、青岛版等内容正在更新中...</span>
                </div>
            </div>
        </div>

        <!-- 语文 -->
        <div class="category" id="chinese">
            <h2>语文</h2>
            <div class="subcategory">
                <h3>统编版-人民教育出版社</h3>
                <div class="pdf-links">
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/七年级/义务教育教科书·语文七年级上册.pdf&title=七年级上册" class="pdf-link"
                        target="_blank">七年级上册</a>
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/七年级/义务教育教科书·语文七年级下册.pdf&title=七年级下册" class="pdf-link"
                        target="_blank">七年级下册</a>
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/八年级/义务教育教科书·语文八年级上册.pdf&title=八年级上册" class="pdf-link"
                        target="_blank">八年级上册</a>
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/八年级/义务教育教科书·语文八年级下册.pdf&title=八年级下册" class="pdf-link"
                        target="_blank">八年级下册</a>
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/九年级/义务教育教科书·语文九年级上册.pdf&title=九年级上册" class="pdf-link"
                        target="_blank">九年级上册</a>
                    <a href="preview.html?file=./初中/语文/统编版-人民教育出版社/九年级/义务教育教科书·语文九年级下册.pdf&title=九年级下册" class="pdf-link"
                        target="_blank">九年级下册</a>
                </div>
            </div>
        </div>
    </div>

    <a href="#" class="back-to-top">回到顶部</a>

    <script>
        document.querySelector('.back-to-top').addEventListener('click', function (e) {
            e.preventDefault();
            window.scrollTo({ top: 0, behavior: 'smooth' });
        });

        document.addEventListener('DOMContentLoaded', function () {
            const navLinks = document.querySelectorAll('.navbar a[data-target]');
            const categories = document.querySelectorAll('.category');

            document.getElementById('math').classList.add('show');
            document.getElementById('nav-math').classList.add('active');

            navLinks.forEach(link => {
                link.addEventListener('click', function (e) {
                    e.preventDefault();

                    categories.forEach(category => {
                        category.classList.remove('show');
                    });

                    navLinks.forEach(navLink => {
                        navLink.classList.remove('active');
                    });

                    const targetId = this.getAttribute('data-target');
                    document.getElementById(targetId).classList.add('show');
                    this.classList.add('active');

                    window.scrollTo({ top: 0, behavior: 'smooth' });
                });
            });
        });
    </script>
</body>

</html>